Creating Rectangles

Rect

function MakeRect(L, T, R, B: Integer): TRect; overload;

function MakeRect(const FR: TFloatRect; Rounding: TRectRounding = rrClosest): TRect; overload;

function MakeRect(const FXR: TFixedRect; Rounding: TRectRounding = rrClosest): TRect; overload;

Provides construction and convertion of rectangles with integer coordinates.

FloatRect

function FloatRect(L, T, R, B: Single): TFloatRect; overload;

function FloatRect(const Rect: TRect): TFloatRect; overload;

function FloatRect(const FXR: TFixedRect): TFloatRect; overload;

Provides construction and convertion of rectangles with floating-point coordinates.

FixedRect

function FixedRect(L, T, R, B: TFixed): TFixedRect; overload;

function FixedRect(const Rect: TRect): TFixedRect; overload;

function FixedRect(const FR: TFloatRect): TFixedRect; overload;

Provides construction and convertion of rectangles with fixed-point coordinates.

 

See Also

Rectangle Types, TRectRounding